package com.liqw;

import com.liqw.auto.bean.CustomBean;
import com.liqw.spi.initializer.CustomContextInitializer;
import com.liqw.spi.listener.CustomRunListener;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.Bean;

import java.util.Arrays;

/**
 * Hello world!
 */
@Slf4j
@SpringBootApplication
public class ExtendApp {

    public static void main(String[] args) {
        SpringApplication.run(ExtendApp.class, args);
        System.out.println(Constant.getStepStr("ExtendApp") + "Hello World!");
    }

    @Bean(initMethod = "init")
    public CustomBean customBean() {
        return new CustomBean();
    }
}
